package com.ehotting.edsta.reliability.enums;

public enum SimutypeEnum {

    PWATA_(1,"热学仿真","PWATA_"),
    PWAVA_(2,"振动仿真","PWAVA_"),
    ;


    private Integer key;
    private String name;
    private String value;

    SimutypeEnum(Integer key,String name,String value){
        this.key = key;
        this.name = name;
        this.value = value;
    }

    public Integer getKey() {
        return key;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }

    public static SimutypeEnum getByKey(Integer key) {
        for (SimutypeEnum simutypeEnum : SimutypeEnum.values()) {
            if (simutypeEnum.getKey().equals(key)) {
                return simutypeEnum;
            }
        }
        return PWATA_;
    }
}
